package com.flying.pas.config.model;

import java.util.Date;

import com.flying.common.util.Codes;
import com.flying.framework.annotation.Param;
import com.flying.framework.annotation.Property;
import com.flying.framework.data.Data;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="c_category",title="", table="c_category", primaryKeys={"category_id"})
public class Category extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "c_category";
	
	public final static String CATEGORY_ID = "category_id";
	public final static String MODULE = "module";
	public final static String CODE = "code";
	public final static String NAME = "name";
	public final static String REMARKS = "remarks";
	public final static String CREATE_TIME = "create_time";
	public final static String UPDATE_TIME = "update_time";
	
	
	@Param(value=CATEGORY_ID,   required=true,   maxlength=0,	desc="CATEGORY ID" , generator=Codes.AUTO_INCREMENT, 
			props= {@Property(name="type",value="hidden")})
	private Long categoryId;
	
	@Param(value=CODE,   required=false,   maxlength=50,	desc="分组代码",
			props= {@Property(name="condition",value="true")} )
	private String code;
	
	@Param(value=NAME,   required=false,   maxlength=50,	desc="分组名称",
			props= {@Property(name="condition",value="true")} )
	private String name;
	
	@Param(value=MODULE,   required=false,   maxlength=40,	desc="所属模块",
			props= {@Property(name="condition",value="true")} )
	private String module;
	
	@Param(value=REMARKS,   required=false,   maxlength=400,	desc="说明" )
	private String remarks;
	
	@Param(value=CREATE_TIME,   required=false,   maxlength=0,	desc="创建时间" )
	private Date createTime;
	
	@Param(value=UPDATE_TIME,   required=false,   maxlength=0,	desc="修改时间" )
	private Date updateTime;
	
	
	public Long getCategoryId() {
		return this.categoryId;
	}
	
	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}
	
	public String getCode() {
		return this.code;
	}
	
	public void setCode(String code) {
		this.code = code;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public String getName() {
		return this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getModule() {
		return module;
	}

	public void setModule(String module) {
		this.module = module;
	}

	public String getRemarks() {
		return this.remarks;
	}
	
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	public Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	

}